package org.boyan.common.util.jsonschema.validate;

import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;
import java.util.Map;
import org.boyan.common.util.jsonschema.CommonProperty;

/**
 * @author 16610
 */
public class HiddenProperty extends CommonProperty {
    private static final long l = -8939298551502162479L;

    public HiddenProperty() {}

    public HiddenProperty(String key, String title) {
        this.b = "string";
        this.e = "hidden";
        this.a = key;
        this.f = title;
    }

    @Override
    public Map<String, Object> getPropertyJson() {
        HashMap<Object, Object> hashMap = new HashMap<>();
        hashMap.put("key", getKey());
        JSONObject jSONObject = getCommonJson();
        jSONObject.put("hidden", Boolean.valueOf(true));
        hashMap.put("prop", jSONObject);
        return (Map)hashMap;
    }
}
